package com.yj.suncity.bean;

import java.util.ArrayList;
import java.util.List;

import org.json.JSONArray;
import org.json.JSONObject;

public class CityHelpListBean {
	
	 private String success;//": "1",
	 private String totalpage;//": "1",
	 private String msg;//": "获取信息成功",
	 private List<CityHelpBean> data;//": [
	public CityHelpListBean(JSONObject json) {
		this.success = json.optString("success");
		this.totalpage = json.optString("totalpage");
		this.msg = json.optString("msg");
		this.data = new ArrayList<CityHelpBean>();
		JSONArray array=json.optJSONArray("data");
		if (array!=null) {
			for (int i = 0; i < array.length(); i++) {
				JSONObject item = array.optJSONObject(i);
				if (item!=null) {
					this.data.add(new CityHelpBean(item));
				}
			}
		}
	}
	public String getSuccess() {
		return success;
	}
	public String getTotalpage() {
		return totalpage;
	}
	public String getMsg() {
		return msg;
	}
	public List<CityHelpBean> getData() {
		return data;
	}

}
